var scn_data={
	alarm:function(){
		var arr=[];
		return arr;
	}(),
	dtu:{ on:150,off:150},
	plc:{on:10,off:10},
	industy:{
		data : function(){
			var arr=[];
			$.ajax({
				type : "post",
				async : false, //同步执行
				url : "/redline/selectAll",
				data : {},
				dataType : "json", //返回数据形式为json
				success : function(result) {
					if (result) {
						for(var i=0;i<result.data.length;i++){
							console.log(result.data[i].redlinenumber);
							arr.push(result.data[i].redlinenumber);
						}
					}
				},
				error : function(errorMsg) {
					alert("不好意思，图表请求数据失败啦!");
					myChart.hideLoading();
				}
			})
			return arr;
		}()
	},
	online:{
		data : function(){
			var arr=[];
			$.ajax({
				type : "post",
				async : false, //同步执行
				url : "/redline/selectAll",
				data : {},
				dataType : "json", //返回数据形式为json
				success : function(result) {
					if (result) {
						for(var i=0;i<result.data.length;i++){
							console.log(result.data[i].redlinename);
							arr.push(result.data[i].redlinename);
						}
					}
				},
				error : function(errorMsg) {
					alert("不好意思，图表请求数据失败啦!");
					myChart.hideLoading();
				}
			})
			return arr;
		}()
	}
	,
	almMsg:function(){
		var arr=[];
		return arr;
	}()
	,
	msgCnt:[{msg:100,alm:20},
		{msg:200,alm:40},
		{msg:300,alm:50},
		{msg:400,alm:35},
		{msg:400,alm:40},
		{msg:400,alm:11},
		{msg:400,alm:66},
		{msg:100,alm:77},
		{msg:200,alm:88},
		{msg:300,alm:22},
		{msg:400,alm:99},
		{msg:400,alm:100},
		{msg:400,alm:111},
		{msg:400,alm:222},
		{msg:100,alm:333},
		{msg:200,alm:11},
		{msg:300,alm:33},
		{msg:400,alm:55},
		{msg:400,alm:77},
		{msg:400,alm:90}
	],
	map:function(){
		var arr=[];
		return arr;
	}(),
	factoryHeader:[
		{"categories":"名称"},
		{"categories":"行政组织"},
		{"categories":"行政区人口"},
		{"categories":"面积"},
		{"categories":"服务功能"},
		{"categories":"操作"},
	],
	factory : function(){
				var arr=[];
				$.ajax({
					type : "post",
					async : false, //同步执行
					url : "/redline/selectAll",
					data1 : {},
					dataType : "json", //返回数据形式为json
					success : function(result) {
						if (result) {
							for(var i=0;i<result.data.length;i++){

								console.log(result.data[i]);
								arr.push(result.data[i]);
							}
						}
					},
					error : function(errorMsg) {
						alert("不好意思，图表请求数据失败啦!");
						myChart.hideLoading();
					}
				})
				return arr;
			}() ,


};
var vm = new Vue({
	el: '#content',
	data: scn_data,
	methods: {
		details: function() {

		}
	}
})
